home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4173 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
  2. From: Dan Pop <danpop@mail.cern.ch>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: void main() and other atrocities!
  5. Date: Fri, 2 Feb 1996 14:10:36 +0100
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <9602021310.AA05941@dxmint.cern.ch>
  8. References: <4eduaj$1aq@grouper.Exis.Net> <4eeeso$b5l@fountain.mindlink.net> <4em17r$shq@jaxnet.jaxnet.com> <4emub9$1mo@fountain.mindlink.net> <4epplj$egf@host-3.cyberhighway.net> <DM45HK.4zG@mv.mv.com>
  9. X-NNTP-Posting-Host: hpl3sn03.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11. X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
  12.  
  13. ENGR@GSSI.MV.COM (Michael Furman) writes:
  14.  
  15. >And by the way, number of C/C++ implementations allow "void main(.." as a
  16. >language extension. Don't get me wrong - I strongly don't recommend using
  17. >this extention, like any unportable staff without some reason - and I
  18. >can't realize what reason is to use/allow this extention.       ^^^^^
  19.  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  20. This is precisely the point.  This violation of the standard doesn't buy
  21. you anything at all, it just reduces the portability of the code.
  22.  
  23. I guess the main reason for its popularity has to be found in the huge
  24. number of C books written by brain-dead or incompetent authors (a la
  25. Schildt).  Beginners assume that the author of their book actually knows
  26. what he's talking about, but this isn't true for _many_ of the C books
  27. available today.
  28.  
  29. Dan 
  30. -- 
  31. Dan Pop
  32. CERN, CN Division
  33. Email: danpop@mail.cern.ch 
  34. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  35.